.class public Lcom/hyphenate/chat/EMGroup;
.super Lcom/hyphenate/chat/EMBase;


# direct methods
.method public constructor <init>(Lcom/hyphenate/chat/adapter/EMAGroup;)V
    .locals 0

    invoke-direct {p0}, Lcom/hyphenate/chat/EMBase;-><init>()V

    iput-object p1, p0, Lcom/hyphenate/chat/EMGroup;->emaObject:Ljava/lang/Object;

    return-void
.end method


# virtual methods
.method copyGroup(Lcom/hyphenate/chat/EMGroup;)V
    .locals 0

    return-void
.end method

.method public getAffiliationsCount()I
    .locals 1

    iget-object v0, p0, Lcom/hyphenate/chat/EMGroup;->emaObject:Ljava/lang/Object;

    check-cast v0, Lcom/hyphenate/chat/adapter/EMAGroup;

    invoke-virtual {v0}, Lcom/hyphenate/chat/adapter/EMAGroup;->getAffiliationsCount()I

    move-result v0

    return v0
.end method

.method public getDescription()Ljava/lang/String;
    .locals 1

    iget-object v0, p0, Lcom/hyphenate/chat/EMGroup;->emaObject:Ljava/lang/Object;

    check-cast v0, Lcom/hyphenate/chat/adapter/EMAGroup;

    invoke-virtual {v0}, Lcom/hyphenate/chat/adapter/EMAGroup;->getDescription()Ljava/lang/String;

    move-result-object v0

    return-object v0
.end method

.method getGroupAvator()Landroid/graphics/Bitmap;
    .locals 2

    new-instance v0, Ljava/lang/Exception;

    const-string/jumbo v1, "group avator not supported yet"

    invoke-direct {v0, v1}, Ljava/lang/Exception;-><init>(Ljava/lang/String;)V

    invoke-virtual {v0}, Ljava/lang/Exception;->printStackTrace()V

    const/4 v0, 0x0

    return-object v0
.end method

.method public getGroupId()Ljava/lang/String;
    .locals 1

    iget-object v0, p0, Lcom/hyphenate/chat/EMGroup;->emaObject:Ljava/lang/Object;

    check-cast v0, Lcom/hyphenate/chat/adapter/EMAGroup;

    invoke-virtual {v0}, Lcom/hyphenate/chat/adapter/EMAGroup;->groupId()Ljava/lang/String;

    move-result-object v0

    return-object v0
.end method

.method public getGroupName()Ljava/lang/String;
    .locals 1

    iget-object v0, p0, Lcom/hyphenate/chat/EMGroup;->emaObject:Ljava/lang/Object;

    check-cast v0, Lcom/hyphenate/chat/adapter/EMAGroup;

    invoke-virtual {v0}, Lcom/hyphenate/chat/adapter/EMAGroup;->groupSubject()Ljava/lang/String;

    move-result-object v0

    return-object v0
.end method

.method public getMemberCount()I
    .locals 1

    iget-object v0, p0, Lcom/hyphenate/chat/EMGroup;->emaObject:Ljava/lang/Object;

    check-cast v0, Lcom/hyphenate/chat/adapter/EMAGroup;

    invoke-virtual {v0}, Lcom/hyphenate/chat/adapter/EMAGroup;->getAffiliationsCount()I

    move-result v0

    return v0
.end method

.method public getMembers()Ljava/util/List;
    .locals 2

    new-instance v1, Ljava/util/ArrayList;

    invoke-direct {v1}, Ljava/util/ArrayList;-><init>()V

    iget-object v0, p0, Lcom/hyphenate/chat/EMGroup;->emaObject:Ljava/lang/Object;

    check-cast v0, Lcom/hyphenate/chat/adapter/EMAGroup;

    invoke-virtual {v0}, Lcom/hyphenate/chat/adapter/EMAGroup;->getOwner()Ljava/lang/String;

    move-result-object v0

    invoke-interface {v1, v0}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    iget-object v0, p0, Lcom/hyphenate/chat/EMGroup;->emaObject:Ljava/lang/Object;

    check-cast v0, Lcom/hyphenate/chat/adapter/EMAGroup;

    invoke-virtual {v0}, Lcom/hyphenate/chat/adapter/EMAGroup;->getMembers()Ljava/util/List;

    move-result-object v0

    invoke-interface {v1, v0}, Ljava/util/List;->addAll(Ljava/util/Collection;)Z

    return-object v1
.end method

.method public getOwner()Ljava/lang/String;
    .locals 1

    iget-object v0, p0, Lcom/hyphenate/chat/EMGroup;->emaObject:Ljava/lang/Object;

    check-cast v0, Lcom/hyphenate/chat/adapter/EMAGroup;

    invoke-virtual {v0}, Lcom/hyphenate/chat/adapter/EMAGroup;->getOwner()Ljava/lang/String;

    move-result-object v0

    return-object v0
.end method

.method public groupSubject()Ljava/lang/String;
    .locals 1

    iget-object v0, p0, Lcom/hyphenate/chat/EMGroup;->emaObject:Ljava/lang/Object;

    check-cast v0, Lcom/hyphenate/chat/adapter/EMAGroup;

    invoke-virtual {v0}, Lcom/hyphenate/chat/adapter/EMAGroup;->groupSubject()Ljava/lang/String;

    move-result-object v0

    return-object v0
.end method

.method public isAllowInvites()Z
    .locals 2

    const/4 v1, 0x1

    iget-object v0, p0, Lcom/hyphenate/chat/EMGroup;->emaObject:Ljava/lang/Object;

    check-cast v0, Lcom/hyphenate/chat/adapter/EMAGroup;

    invoke-virtual {v0}, Lcom/hyphenate/chat/adapter/EMAGroup;->groupSetting()Lcom/hyphenate/chat/adapter/EMAGroupSetting;

    move-result-object v0

    if-nez v0, :cond_0

    move v0, v1

    :goto_0
    return v0

    :cond_0
    invoke-virtual {v0}, Lcom/hyphenate/chat/adapter/EMAGroupSetting;->style()I

    move-result v0

    if-ne v0, v1, :cond_1

    move v0, v1

    goto :goto_0

    :cond_1
    const/4 v0, 0x0

    goto :goto_0
.end method

.method public isMembersOnly()Z
    .locals 3

    const/4 v1, 0x1

    iget-object v0, p0, Lcom/hyphenate/chat/EMGroup;->emaObject:Ljava/lang/Object;

    check-cast v0, Lcom/hyphenate/chat/adapter/EMAGroup;

    invoke-virtual {v0}, Lcom/hyphenate/chat/adapter/EMAGroup;->groupSetting()Lcom/hyphenate/chat/adapter/EMAGroupSetting;

    move-result-object v0

    if-nez v0, :cond_0

    move v0, v1

    :goto_0
    return v0

    :cond_0
    invoke-virtual {v0}, Lcom/hyphenate/chat/adapter/EMAGroupSetting;->style()I

    move-result v2

    if-eqz v2, :cond_1

    invoke-virtual {v0}, Lcom/hyphenate/chat/adapter/EMAGroupSetting;->style()I

    move-result v2

    if-eq v2, v1, :cond_1

    invoke-virtual {v0}, Lcom/hyphenate/chat/adapter/EMAGroupSetting;->style()I

    move-result v0

    const/4 v2, 0x2

    if-ne v0, v2, :cond_2

    :cond_1
    move v0, v1

    goto :goto_0

    :cond_2
    const/4 v0, 0x0

    goto :goto_0
.end method

.method public isMsgBlocked()Z
    .locals 1

    iget-object v0, p0, Lcom/hyphenate/chat/EMGroup;->emaObject:Ljava/lang/Object;

    check-cast v0, Lcom/hyphenate/chat/adapter/EMAGroup;

    invoke-virtual {v0}, Lcom/hyphenate/chat/adapter/EMAGroup;->isMsgBlocked()Z

    move-result v0

    return v0
.end method

.method public isPublic()Z
    .locals 2

    const/4 v1, 0x1

    iget-object v0, p0, Lcom/hyphenate/chat/EMGroup;->emaObject:Ljava/lang/Object;

    check-cast v0, Lcom/hyphenate/chat/adapter/EMAGroup;

    invoke-virtual {v0}, Lcom/hyphenate/chat/adapter/EMAGroup;->groupSetting()Lcom/hyphenate/chat/adapter/EMAGroupSetting;

    move-result-object v0

    if-nez v0, :cond_0

    move v0, v1

    :goto_0
    return v0

    :cond_0
    invoke-virtual {v0}, Lcom/hyphenate/chat/adapter/EMAGroupSetting;->style()I

    move-result v0

    packed-switch v0, :pswitch_data_0

    move v0, v1

    goto :goto_0

    :pswitch_0
    const/4 v0, 0x0

    goto :goto_0

    :pswitch_data_0
    .packed-switch 0x0
        :pswitch_0
        :pswitch_0
    .end packed-switch
.end method

.method public setStyle(I)V
    .locals 1

    iget-object v0, p0, Lcom/hyphenate/chat/EMGroup;->emaObject:Ljava/lang/Object;

    check-cast v0, Lcom/hyphenate/chat/adapter/EMAGroup;

    invoke-virtual {v0}, Lcom/hyphenate/chat/adapter/EMAGroup;->groupSetting()Lcom/hyphenate/chat/adapter/EMAGroupSetting;

    move-result-object v0

    if-nez v0, :cond_0

    :goto_0
    return-void

    :cond_0
    invoke-virtual {v0, p1}, Lcom/hyphenate/chat/adapter/EMAGroupSetting;->setStyle(I)V

    goto :goto_0
.end method

.method public toString()Ljava/lang/String;
    .locals 1

    invoke-virtual {p0}, Lcom/hyphenate/chat/EMGroup;->getGroupName()Ljava/lang/String;

    move-result-object v0

    if-eqz v0, :cond_0

    :goto_0
    return-object v0

    :cond_0
    invoke-virtual {p0}, Lcom/hyphenate/chat/EMGroup;->getGroupId()Ljava/lang/String;

    move-result-object v0

    goto :goto_0
.end method
